<!DOCTYPE html>
<html>
<include file="Public:header" />
<link href="__ACSS__/dialog.css" rel="stylesheet">
<link href="__ACSS__/plugins/validform/validform.css" rel="stylesheet">
<style>
	.form-control{ padding-left:5px;}
	.upload-warp{ position:relative;}
	.upload-btn{ position:absolute; top:0; right:0; border-radius:0;}
</style>
  <body>
	  <div class="wrapper wrapper-content animated fadeInRight">
	  	<form role="form" class="form" action="__URL__/update">
			<input type="hidden" name="update_time" value="<php>echo time();</php>">
			<input type="hidden" name="id" value="<{$vo.id}>">
			<div class="form-group">
				<label class="col-sm-2 control-label">反馈内容：</label>
				<div class="col-sm-10">
					<span style="color:red;"><{$vo.content}></span>
				</div>
			</div>
			<br/>
			<br/>
			<div class="clearfix"></div>
			<div class="form-group">
				<label class="col-sm-2 control-label">回复：</label>
				<div class="col-sm-10">
					<textarea datatype="*" class="form-control feedback" name="feedback" placeholder="请回复内容"></textarea>
				</div>
			</div>
			<div class="clearfix">
				<input type="hidden" name="noticeType" id="noticeType" value="1"/>
				<input type="hidden" name="userId" value="<{$vo.user_id}>">
				<div class="col-sm-10">
					<button type="submit" id="submit" class="btn btn-success btn-block">提交</button>
				</div>
				<div class="col-sm-2">
					<button type="button" id="ignore" class="btn btn-default btn-block">忽略</button>
				</div>
				<button type="reset" id="reset2" class="btn btn-success btn-block hidden">重置</button>
			</div>
		</form>
	  </div>
  </body>
<!-- 全局js -->
<include file="Public:foot" />
<script src="__AJSPLUGINS__/validform/Validform_v5.3.2_min.js"></script>
<script>
$(function(){
	$("#reset2").click();
	var index = parent.layer.getFrameIndex(window.name);
	var form = $(".form").Validform({
		tiptype:4,
		ajaxPost:true,
		callback:function(data){
			if(data.status == 1) {
				window.parent.layer.msg(data.info);
				window.parent.$('#table_list').trigger("reloadGrid");
			}else{
				window.parent.layer.msg(data.info);
			}
			parent.layer.close(index);
		}
	});
	$("#ignore").click(function() {
		$("#noticeType").val(2);
		$(".feedback").val("后台忽略");
		$(".form").submit();
	})
})
</script>
</html>